@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12 col-md-offset-0">
                <div class="panel panel-default">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            表情包列表
                        </div>

                        <div class="panel-body">
                            {!! $smiles->links() !!}
                            <table class="table table-striped task-table">
                                <thead>
                                <th>编号</th>
                                <th>文件名</th>
                                <th>缩略图</th>
                                </thead>
                                <tbody>
                                @foreach ($smiles as $smile)
                                    <tr>
                                        <td class="table-text"><div>{{ $smile->id }}</div></td>
                                        <td class="table-text"><div><a href="/smileDetail?id={{ $smile->id }}">{{ $smile->url }}</a></div></td>
                                        <td class="table-text"><div><img src="/images/smile/{{ $smile->url }}" alt=""></div></td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            {!! $smiles->links() !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
